$OpenBSD: patch-smurflog_c,v 1.1 2017/04/19 22:20:27 espie Exp $
--- smurflog.c.orig	Thu Apr 20 00:15:03 2017
+++ smurflog.c	Thu Apr 20 00:15:59 2017
@@ -46,6 +46,7 @@ void usage(char *progname)
    exit(1);
 }
 
+extern void log(char *format, ...);
 inline void log(char *format, ...)
 {
    va_list args;
@@ -68,7 +69,7 @@ inline void log(char *format, ...)
    va_end(args);
 }
 
-inline RETSIGTYPE alarm_handler(int status)
+RETSIGTYPE alarm_handler(int status)
 {
    if (!smurfmode) {
       if (kbps >= THRESHOLD_KBPS && pps >= THRESHOLD_PPS) {
@@ -163,11 +164,13 @@ inline void handlepkt(const u_char *packet)
 	num, inet_ntoa(*((struct in_addr *) &srcip)), ntohs(length));
 }
 
+extern void eth_printer(u_char *, const struct pcap_pkthdr *, const u_char *);
 inline void eth_printer(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
 {
    handlepkt(p+14);
 }
 
+extern void ppp_printer(u_char *, const struct pcap_pkthdr *, const u_char *);
 inline void ppp_printer(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
 {
    handlepkt(p+4);
